package com.menggudf.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 诊断时生成的病历
 * @author Administrator
 *
 */
@Entity
@Table(name="medicalRecord")
public class MedicalRecord implements Serializable{
    
    /**
     * 
     */
    private static final long serialVersionUID = 4275234167289185698L;
    
    private int id;
    private String usercode;
    private String username;
    private String code;
    private String name;
    private String zhushu;

    private String askrecord;
    private String medicalrecord;
    private String jiedu;
    private String pingjia;
    private Integer status;
    private Date createdTime;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name = "username")
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name = "code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name = "zhushu")
    public String getZhushu() {
        return zhushu;
    }
    public void setZhushu(String zhushu) {
        this.zhushu = zhushu;
    }

    @Column(name = "usercode")
    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    @Column(name = "askrecord")
    public String getAskrecord() {
        return askrecord;
    }

    public void setAskrecord(String askrecord) {
        this.askrecord = askrecord;
    }

    @Column(name = "medicalrecord")
    public String getMedicalrecord() {
        return medicalrecord;
    }

    public void setMedicalrecord(String medicalrecord) {
        this.medicalrecord = medicalrecord;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createdTime", length = 19)
    public Date getCreatedTime() {
        return createdTime;
    }
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Column(name = "jiedu")
    public String getJiedu() {
        return jiedu;
    }

    public void setJiedu(String jiedu) {
        this.jiedu = jiedu;
    }

    @Column(name = "pingjia")
    public String getPingjia() {
        return pingjia;
    }

    public void setPingjia(String pingjia) {
        this.pingjia = pingjia;
    }
}
